package com.yule;

import org.mybatis.spring.annotation.MapperScan;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * @author gjl
 * @description 2017/8/31
 */
@EnableAutoConfiguration
@EnableTransactionManagement
@ComponentScan
@EnableZuulProxy
@EnableEurekaClient
@SpringBootApplication
@MapperScan("com.yule.dao")
public class ServiceZuulApplication {

    private static Logger logger = LoggerFactory.getLogger(ServiceZuulApplication.class);

    public static void main(String args[]){
        SpringApplication.run(ServiceZuulApplication.class, args);
        logger.info("============= Zuul Start Success =============");
    }
}
